package tech.aichan.AiQA.esrepo;

import tech.aichan.AiQA.model.entity.es.ItemES;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author mengyu
 * @date 2024/03/04 19:44
 * ES repo接口
 */
//@Repository TODO
public interface ItemESRepo extends ElasticsearchRepository<ItemES, Long> {
    // 通过字段all查找
    List<ItemES> findByAll(String all);

    // 通过字段all分页查询
    Page<ItemES> findByAll(String all, Pageable pageable);
}
